package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.sdata.Project;
import com.xhwl.common.pojo.cent.sdata.Scene;
import com.xhwl.data.pojo.dto.SceneQueryPageDTO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface ISceneService extends IService<Scene> {

    @RequestMapping(value = "/scene-service/page", method = RequestMethod.POST)
    Page<Scene> page(@RequestPart Scene scene, @RequestPart Page page);

    List<Scene> findList(SceneQueryPageDTO sceneQueryPageDTO);

    List<Project> projectList(Integer id);

    Page<Project> projectPage(Scene scene, Page page);
}
